<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
	</body>
	<script type="text/javascript">
		let obj = {
			p: ['Hello',
				{
					y: 'World'
				}
			]
		};
		let {
			p,
			p: [x, {
				y
			}]
		} = obj;
		console.log(x);
		console.log(y);
		console.log(p);
	</script>

</html>